package com.ssm.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.ssm.pojo.Type;
import org.springframework.stereotype.Repository;

@Repository
public interface Typemapper {
    public List<Type> selectAll();

    public Type selectById(long id);

    public void insert(String name);

    public List<Type> selectBySname(String name);

    public void update(@Param("id")long id,@Param("name")String name);

    public void delete(long id);
}
